package ehcache;

import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;

/**
 * ehcache工具类
 * 
 * @author gj
 * 
 */
public class EhCacheManager {

	private static final Cache ehcache = CacheManager.create().getCache("ehcache");

	public static Cache getInstance() {
		return ehcache;
	}
	
	public static void main(String[] args) {
		System.out.println(EhCacheManager.getInstance());
	}

}
